package co.com.umobile.service.impl;

import android.content.Context;
import co.com.umobile.dao.UserSessionDAO;
import co.com.umobile.domain.User;
import co.com.umobile.service.SessionServices;

/**
 * Class that implement the services associated to session.
 * @author sergiogranada
 *
 */
public class SessionServicesImpl implements SessionServices {

	/* (non-Javadoc)
	 * @see co.com.psl.ssfmobile.asesor.common.util.services.session.SessionServices#getLastUserSession()
	 */
	public User getLastUserSession() {
		return UserSessionDAO.getLastUserSession();
	}


	/* (non-Javadoc)
	 * @see co.com.psl.ssfmobile.asesor.common.util.services.session.SessionServices#updateUser(co.com.psl.ssfmobile.security.UserSession)
	 */
	public void updateUser(User userSession, Context context) {
		UserSessionDAO.updateUser(userSession, context);
	}
}
